package com.wing.cabinet.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.cabinet.model.entity.CellInventoryProduct;
import com.wing.cabinet.model.request.CellInventoryProductForm;
import com.wing.cabinet.model.response.CellInventoryProductVO;
import com.wing.cabinet.model.response.CellSingleInventoryProductVO;

import java.util.List;
import java.util.Map;

/**
 * 售刀柜产品库存-Service
 *
 * @author
 */
public interface CellInventoryProductService extends IService<CellInventoryProduct> {

    /**
     * 添加
     *
     * @param cellInventoryProductForm
     * @return
     */
    int add(CellInventoryProductForm cellInventoryProductForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<CellInventoryProductVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<CellInventoryProductVO> pageList4app(Page page, Map<String, Object> params);
    Page<CellInventoryProductVO> pageList(Page page, Map<String, Object> params);

    Page<CellInventoryProductVO> pageListSku4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    CellInventoryProductVO get4appById(Long id);

    /**
     * 导出库存列表（按产品）数据
     * @return
     */

    List<CellInventoryProductVO> ecxportList(Map<String, Object> params);
}
